package com.uranus.auth.auth.beans;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ybx
 * @since 2018-12-21
 */
@Data
public class User extends Model<User> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 钱包地址
     */
    private String accountAddress;

    /**
     * 登录名
     */
    private String loginName;

    /**
     * 密码
     */
    @JsonIgnore
    private String password;
    /**
     * 密码加密随即字符串
     */
    @JsonIgnore
    private String salt;

    /**
     * 用户类型(1:前台注册的用户)
     */
    private Integer roleId;

    /**
     * 界面显示昵称
     */
    private String nickName;
    /**
     * 手机号
     */
    private String mobile;

    /**
     * 邮箱
     */
    private String email;

    private Date createTime;

    private Date updateTime;


}
